
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
markdown-it-ins
Advanced tools
The markdown-it-ins package is a plugin for the markdown-it Markdown parser that adds support for the <ins> HTML tag, which is used to denote inserted text. This can be useful for indicating additions or changes in a document.
Insertions
This feature allows you to use the ++text++ syntax in your Markdown to denote inserted text, which will be rendered as <ins>text</ins> in HTML.
const md = require('markdown-it')();
const markdownItIns = require('markdown-it-ins');
md.use(markdownItIns);
const result = md.render('++inserted text++');
console.log(result); // Outputs: <p><ins>inserted text</ins></p>
The markdown-it-mark package is a plugin for markdown-it that adds support for the <mark> HTML tag, which is used to highlight text. While markdown-it-ins focuses on insertions, markdown-it-mark is used for highlighting text.
The markdown-it-sub package is a plugin for markdown-it that adds support for the <sub> HTML tag, which is used to denote subscript text. This is different from markdown-it-ins, which is used for insertions.
The markdown-it-sup package is a plugin for markdown-it that adds support for the <sup> HTML tag, which is used to denote superscript text. This is another type of text formatting that is distinct from the insertions provided by markdown-it-ins.
<ins>
tag plugin for markdown-it markdown parser.
v1.+ requires markdown-it
v4.+, see changelog.
++inserted++
=> <ins>inserted</ins>
Markup uses the same conditions as CommonMark emphasis.
node.js, browser:
npm install markdown-it-ins --save
bower install markdown-it-ins --save
var md = require('markdown-it')()
.use(require('markdown-it-ins'));
md.render('++inserted++') // => '<p><ins>inserted</ins></p>'
Differences in browser. If you load script directly into the page, without
package system, module will add itself globally as window.markdownitIns
.
FAQs
tag for markdown-it markdown parser.
The npm package markdown-it-ins receives a total of 153,395 weekly downloads. As such, markdown-it-ins popularity was classified as popular.
We found that markdown-it-ins demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.